import request from '@/utils/request'




const BASE_URL='/admin/system/sysOwner';

export default{

    getPageList(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    getOwnerById(id){
        return request({
            url:`${BASE_URL}/getOwnerById/${id}`,
            method:'get',
            
        })
    },

    updateOwnerById(sysOwner){
        return request({
            url:`${BASE_URL}/updateOwnerById`,
            method:'post',
            data:sysOwner
        })
    },

    removeById(id){
        return request({
            url:`${BASE_URL}/removeOwnerById/${id}`,
            method:'delete',
            
        })
    },

    removeByIds(ids){
        return request({
            url:`${BASE_URL}/removeOwnerByIds`,
            method:'delete',
            data:ids
        })
    },

    addOwner(sysOwner){
        return request({
            url:`${BASE_URL}/addOwner`,
            method:'post',
            data:sysOwner
        })
    },





    
}